import request from '@/utils/request'
// 导入
export function drdata(data) {
  return request({
    responseType: 'blob',
    url: '/sc/outReturnSheet/importStudent',
    method: 'post',
    data
  })
}
// 下载模板
export function Dwtemplate() {
  return request({
    responseType: 'blob',
    url: '/sc/outReturnSheet/downloadTemplate',
    method: 'get'
  })
}
// 获取一级菜单
export function getBarList(token) {
  return request({
    url: '/home/navigationBar',
    method: 'get',
    params: { token }
  })
}

// 总部收支汇总报表
export function exportDataHead(data) {
  return request({
    responseType: 'blob',
    url: '/sc/hqIncomeAndExpend/export',
    method: 'post',
    data
  })
}

// 出港发件成本报表
export function exportDataCG(data) {
  return request({
    responseType: 'blob',
    url: '/sc/contractAreaSendCostCalculate/export',
    method: 'post',
    data
  })
}

// 网点账单明细
export function exportDataWDZDMX(data) {
  return request({
    // responseType: 'blob',
    // url: '/hq/billDetail/export',
    // url: '/exportUtils/exportList',
    url: '/hq/billDetail/exportDetailAsync',
    method: 'post',
    data
  })
}

// 网点账单
export function exportDataWDZD(data) {
  return request({
    responseType: 'blob',
    url: '/hq/billCollect/export',
    method: 'post',
    data
  })
}

// 质控费用汇总报表
export function exportDataZKFY(data) {
  return request({
    responseType: 'blob',
    url: '/sc/qualityControlFee/export',
    method: 'post',
    data
  })
}
// 客户配置导出接口
export function exportDatakhpz() {
  return request({
    responseType: 'blob',
    url: '/hq/clientRelation/export',
    method: 'get'
  })
}
// 出港派件毛利报表
export function exportDataCGPJML(data) {
  return request({
    responseType: 'blob',
    url: '/sc/paiGrossProfitSheet/export',
    method: 'post',
    data
  })
}

// 出港包仓毛利报表
export function exportDataCGBCML(data) {
  return request({
    responseType: 'blob',
    url: '/sc/outPortWarehouseGrossProfitSheet/export',
    method: 'post',
    data
  })
}

// 流向均重毛利报表
export function exportDataLXJZML(data) {
  return request({
    responseType: 'blob',
    url: '/sc/monitoring/export',
    method: 'post',
    data
  })
}

// 出港返利毛利报表
export function exportDataCGFLML(data) {
  return request({
    responseType: 'blob',
    url: '/sc/outReturnSheet/export',
    method: 'post',
    data
  })
}

// 总部下载

export function zbdownload(name) {
  return request({
    responseType: 'blob',
    url: `/common/download/${name}`,
    method: 'get'
  })
}
// 下载
export function downloadfile(fileName) {
  return request({
    url: `/common/getFileDownloadUrl/${fileName}`,
    method: 'get'
  })
}
